package com.java2_22_1;

public abstract class Employee {
    private int id;
    private String name;
    private String work;

    public Employee() {

    }

    public Employee(int id, String name, String work) {
        this.id = id;
        this.name = name;
        this.work = work;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public abstract void work();

    @Override
    public String toString() {
        return id + " " + name + " " + work;
    }
}
